//
// Created by imed on 2024/4/15.
//

#ifndef CPPMODULE_CMDTOOLS_H
#define CPPMODULE_CMDTOOLS_H

#include <cstdio>
#include <cstring>

#ifdef _MSC_VER // Microsoft Visual C++
    #define popen _popen
    #define pclose _pclose
#endif

#define CMD_RESULT_BUF_SIZE 1024
int ExecuteCMD(const char *cmd, char *result);

#endif //CPPMODULE_CMDTOOLS_H
